home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8440 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.pl1,comp.lang.c
  4. Subject: Re: PL/I and C
  5. Date: 4 Mar 1996 01:20:30 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4he5ju$aeh@solutions.solon.com>
  8. References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <4h8vte$s76@goanna.cs.rmit.EDU.AU> <4h9t5l$hkk@solutions.solon.com> <ag129.168.0012487D@ucs.cam.ac.uk>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <ag129.168.0012487D@ucs.cam.ac.uk>,
  12. A. Grant <ag129@ucs.cam.ac.uk> wrote:
  13. [I wrote]
  14. >>You're forgetting the "f".  Which is apparently because you lack the
  15. >>conceputal framework.  sprintf-> string print *formatted*.  Those formats
  16. >>are awe-inspiringly powerful.
  17.  
  18. >Awe-inspiring?  It can't even put commas into numbers, which is about
  19. >the most basic requirement of printing formatted numbers.
  20.  
  21. *sigh* Fair enough.  I think they may be able to add this in C9X.  On
  22. the other hand, how do you do it *correctly*?  I think one of the
  23. reasons C doesn't have this is that locale wasn't well defined may
  24. back when.
  25.  
  26. >And PUT STRING with EDIT _is_ a formatted string print.
  27.  
  28. Cool.  :)
  29.  
  30. Mostly, my point was that sprintf can trim characters and center strings,
  31. with not too much effort.
  32.  
  33. -s
  34. -- 
  35. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  36. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  37. FUCK the communications decency act.  Goddamned government.  [literally.]
  38. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  39.